{include 'public/header.php'}
<h3>生成序列号</h3>
<form method="post" action="">
	<table class="table">
		<tr>
			<td>
				<input class="form-control" value="" name="serial[first]" placeholder="序列号首位（非必填，1位字母）">
			</td>
			<td>
				<input class="form-control" value="" name="serial[year]" placeholder="序列号年份（非必填）默认-{date('Y')}">
			</td>
			<td>
				<input class="form-control" value="" name="serial[total]" placeholder="生成个数，默认200个,应小于2000">
			</td>
			<td>
				<button class="btn btn-primary">生成</button>
			</td>
		</tr>
		<!-- <tr>
			<td>
				<input class="form-control" value="" name="serial[keyword]" placeholder="模糊搜索序列号">
			</td>
			<td>
				<input class="form-control" value="" name="serial[total]" placeholder="生成个数，默认200个">
			</td>
			<td>
				<button class="btn btn-success" type="button" onclick="$(this).parents('form').attr('action', '/index/search').submit();">搜索</button>
			</td>
		</tr> -->
		{if !empty($error)}
		<tr class="warning">
			<td colspan="3">
				<span style="color:red">{$error}</span>
			</td>
		</tr>
		{/if}
	</table>
</form>

<table class="table table-striped table-bordered">
	<tr>
		<td>序号</td>
		<td>序列号</td>
		<td>年份</td>
		<td>注册时间</td>
	</tr>

	{foreach from=$list key=k item=value}  
	<tr>
		<td>{$value.id}</td>
		<td>{$value.xuliehao}</td>
		<td>{$value.year}</td>
		<td>{$value.created_at}</td>
	</tr>
	{/foreach}
	<!-- <tr>
		<td colspan="5">
			<nav>
			  <ul class="pagination">
			    <li>
			      <a href="#" aria-label="Previous">
			        <span aria-hidden="true">&laquo;</span>
			      </a>
			    </li>
			    <li><a href="#">1</a></li>
			    <li><a href="#">2</a></li>
			    <li><a href="#">3</a></li>
			    <li><a href="#">4</a></li>
			    <li><a href="#">5</a></li>
			    <li>
			      <a href="#" aria-label="Next">
			        <span aria-hidden="true">&raquo;</span>
			      </a>
			    </li>
			  </ul>
			</nav>
		</td>
	</tr> -->
</table>
{include 'public/footer.php'}